package com.src.java.exception;

import java.io.FileInputStream;
import java.io.IOException;

public class ValidExceptionHierarchy {
	public static void main(String[] args) {
		try {
			FileInputStream file = new FileInputStream("Test.java");
			file.read();
			file.close();
		} 
		catch (IOException ioe) {
			ioe.printStackTrace();
		} 
//		 catch (FileNotFoundException ex) { // Not valid!
//			 System.out.println("File Not found in the path...");
//		 }
	}
}
